package com.ruoyi.SSL.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.SSL.mapper.SslDomainRrValMapper;
import com.ruoyi.SSL.domain.SslDomainRrVal;
import com.ruoyi.SSL.service.ISslDomainRrValService;
import com.ruoyi.common.core.text.Convert;

/**
 * 域名解析记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-03
 */
@Service
public class SslDomainRrValServiceImpl implements ISslDomainRrValService 
{
    @Autowired
    private SslDomainRrValMapper sslDomainRrValMapper;

    /**
     * 查询域名解析记录
     * 
     * @param id 域名解析记录主键
     * @return 域名解析记录
     */
    @Override
    public SslDomainRrVal selectSslDomainRrValById(Long id)
    {
        return sslDomainRrValMapper.selectSslDomainRrValById(id);
    }

    /**
     * 查询域名解析记录列表
     * 
     * @param sslDomainRrVal 域名解析记录
     * @return 域名解析记录
     */
    @Override
    public List<SslDomainRrVal> selectSslDomainRrValList(SslDomainRrVal sslDomainRrVal)
    {
        return sslDomainRrValMapper.selectSslDomainRrValList(sslDomainRrVal);
    }

    /**
     * 新增域名解析记录
     * 
     * @param sslDomainRrVal 域名解析记录
     * @return 结果
     */
    @Override
    public int insertSslDomainRrVal(SslDomainRrVal sslDomainRrVal)
    {
        return sslDomainRrValMapper.insertSslDomainRrVal(sslDomainRrVal);
    }

    /**
     * 修改域名解析记录
     * 
     * @param sslDomainRrVal 域名解析记录
     * @return 结果
     */
    @Override
    public int updateSslDomainRrVal(SslDomainRrVal sslDomainRrVal)
    {
        return sslDomainRrValMapper.updateSslDomainRrVal(sslDomainRrVal);
    }

    /**
     * 批量删除域名解析记录
     * 
     * @param ids 需要删除的域名解析记录主键
     * @return 结果
     */
    @Override
    public int deleteSslDomainRrValByIds(String ids)
    {
        return sslDomainRrValMapper.deleteSslDomainRrValByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除域名解析记录信息
     * 
     * @param id 域名解析记录主键
     * @return 结果
     */
    @Override
    public int deleteSslDomainRrValById(Long id)
    {
        return sslDomainRrValMapper.deleteSslDomainRrValById(id);
    }
}
